package org.e_gold.util;

import java.util.List;

import org.apache.log4j.Logger;
import org.e_gold.model.Event;

public class LogUtil {

	private static final Logger logger = Logger.getLogger(LogUtil.class);

	public static void logs(List<Event> events) {

		for (Event e : events) {
			logger.info(":::::::::::::::::::::::::::");
			logger.info("Event : " + e.getName());
			logger.info(":: Home team : " + e.getHomeName() + "  v  Away team : " + e.getAwayName() + " ::");
			logger.info(":: Current time  : " + e.getPlayTime() + " ::");
			logger.info(":: Total goal : " + e.getTotalGoal() + " ::");
			logger.info(":: Location : " + e.getLocation() + "  ::");
			logger.info(":::::::::::::::::::::::::::");
		}
	}

	public static void logStart() {

		logger.info("!!!!!!!!!!!!!!!!!!!!!!!!");
		logger.info("!!!!Started dig gold!!!!");
		logger.info("!!!!!!!!!!!!!!!!!!!!!!!!");

	}

	public static void logWaitingNextTime(int waitingNextTime, String timeType) {

		logger.info("");
		logger.info(":::Will waiting next time for : " + waitingNextTime + " " + timeType + " !!!");
		logger.info("");
	}
}
